home *** CD-ROM | disk | FTP | other *** search
- #ifndef __SAVEWINDOWS__
- #define __SAVEWINDOWS__
-
- #include "AppleEventUtilities.h"
-
-
- typedef struct _openwindowInfo
- {
- short fAliasToOwnerID;
- DescType fWindowClass;
- Rect fWindowBounds;
- } OpenWindowInfo, *OpenWindowInfoPtr, **OpenWindowInfoHandle;
-
- #define kAliasToWindowOwnerType 'wina'
- #define kOpenWindowInfoType 'winf'
-
-
- void FindPSNbyTypeAndSig(ProcessSerialNumber* psn, OSType type, OSType sig);
- TDescriptor GetAddressOfFinder(void);
- TDescriptor MakeSpecifierForSelection(void);
- TDescriptor MakeSpecifierForIndexedItem(DescType desiredClass, long index, TDescriptor ofSpecifier);
- TDescriptor MakeSpecifierForFrontWindow(void);
- TDescriptor MakeSpecifierForPropertyOfSpecifier(DescType property, TDescriptor ofSpecifier);
- TDescriptor MakeSpecifierForPropertyOfSelection(DescType property);
- TDescriptor GetFinderSelection(DescType desiredType);
- long CountItemsInContainer(DescType desiredClass, TDescriptor inContainer, TDescriptor target);
- void SetWindowInformation(Handle aliasToWindowOwner, OpenWindowInfo& windowInfo);
- void RestoreAllWindowInformation(void);
- void SaveWindowInformation(Handle aliasToWindowOwner, OpenWindowInfo& windowInfo);
- void SaveWindowsAndPositions(void);
- void UpdateChangedObject(FSSpec& itemsFSSpec);
-
- #endif
-